var vm = new Vue({
    el: '#container',
    data: {
        list: []
    },

    methods: {
        getMenuList: function() {
            var _this = this;
            parent.xmy.getData({
                url: './mock/menu.json',
                contentType: 'application/json',
                success: function(res) {
                    _this.list = res.dataList;
                    _this.$nextTick(function() {
                        $.getScript("./js/Menu.js");
                        setTimeout(function(){
                            $.getScript('./js/initNav.js');
                        }, 100);
                    });
                    
                }
            });
        }
    },

    mounted: function() {
        this.getMenuList();
    }
});